package com.hxw.controller;

import com.hxw.entity.EntityByBProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Think on 2018/9/1.
 */
@Controller
public class ThymeleafController {

    @GetMapping(value = "/templates")
    String test(HttpServletRequest request){
        //处理逻辑
        request.setAttribute("name","wenxing");
        return "thy-demo";
    }

}
